package com.yc.exam.web;

import com.yc.exam.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Company 源辰信息
 *
 * @author navy
 * @date 2024/8/12
 * Email haijunzhou@hnit.edu.cn
 */
@RestController
public class IndexAction {

    @GetMapping("hello")
    public String index(){
        return "hello world!";
    }

    @Autowired
    UserMapper userMapper;

    @GetMapping("queryAllUser")
    public List<?> queryAllUser(){
        return userMapper.selectList(null);
    }


}
